package com.example.leon.demo.common;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by wang.long on 2016/3/28.
 */
public class BaseActivity extends Activity {

    @Override
    protected void onCreate(Bundle saveInstanceState){
        super.onCreate(saveInstanceState);

        Log.d("BaseActivity", getClass().getCanonicalName());
        ActivityCollector.addActivity(this);

    }

    @Override
    protected void onDestroy(){
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
